package com.neusoft.elm.controller;

import com.neusoft.elm.po.Food;
import com.neusoft.elm.service.FoodService;
import com.neusoft.elm.service.impl.FoodServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class FoodController {
    FoodService foodService=new FoodServiceImpl();
    public Object listFoodByBusinessId(HttpServletRequest request)throws Exception{
        Integer businessId=Integer.valueOf(request.getParameter("businessId"));
        //Food food=businessService.listFood
//       List<Food>list=foodService.listFoodByBusinessId();
        Food food=new Food();
        List<Food>list=foodService.listFoodByBusinessId(businessId);
        return list;


    }
}
